﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Fraction.aspx.cs" Inherits="XHCTMS.VIEW.Fraction" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]-->
<!--[if IE 7 ]>    <html lang="en" class="no-js ie7"> <![endif]-->
<!--[if IE 8 ]>    <html lang="en" class="no-js ie8"> <![endif]-->
<!--[if IE 9 ]>    <html lang="en" class="no-js ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<!--<![endif]-->
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title></title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="css/style.css?v=2">
    <!-- fluid 960 -->
    <link rel="stylesheet" type="text/css" href="css/text.css" media="screen" />
    <link rel="stylesheet" type="text/css" href="css/layout.css" media="screen" />
    <link rel="stylesheet" type="text/css" href="css/grid.css" media="screen" />
    <!-- superfish menu -->
    <link rel="stylesheet" type="text/css" href="css/superfish.css" media="screen" />
    <!-- tags css -->
    <link rel="stylesheet" href="css/jquery.tagsinput.css">
    <!-- treeview css -->
    <link rel="stylesheet" href="css/jquery.treeview.css">
    <!-- dataTable css -->
    <link rel="stylesheet" href="css/demo_table_jui.css">
    <!-- fluid GS -->
    <link rel="stylesheet" type="text/css" href="css/fluid.gs.css" media="screen" />
    <!--[if lt IE 8 ]>
<link rel="stylesheet" type="text/css" href="css/fluid.gs.lt_ie8.css" media="screen" />
<![endif]-->
    <!-- //jqueryUI css -->
    <link type="text/css" href="css/custom-theme/jquery-ui-1.8.13.custom.css" rel="stylesheet" />
    <!-- //jquery -->
    <!-- <script src="//ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script> -->
    <script src="js/libs/jquery-1.5.1.min.js"></script>
    <script>        !window.jQuery && document.write(unescape('%3Cscript src="js/libs/jquery-1.5.1.min.js"%3E%3C/script%3E'))</script>
    <!-- //jqueryUI -->
    <script type="text/javascript" src="js/jquery-ui-1.8.13.custom.min.js"></script>
    <script type="text/javascript" src="js/jquery-fluid16.js"></script>
    <script src="js/plugins.js"></script>
    <script src="js/script.js"></script>
    <!-- //xoxco tags plugin https://github.com/xoxco/jQuery-Tags-Input -->
    <script src="js/jquery.tagsinput.min.js"></script>
    <link rel="stylesheet" href="css/jquery.tagsinput.css">
    <!--[if lt IE 7 ]>
<script src="js/libs/dd_belatedpng.js"></script>
<script> DD_belatedPNG.fix('img, .png_bg');</script>
<![endif]-->
    <!-- modernizr -->
    <script src="js/libs/modernizr-1.7.min.js"></script>
    <!-- superfish menu and needed js for menu -->
    <script src="js/superfish.js"></script>
    <script src="js/supersubs.js"></script>
    <script src="js/hoverIntent.js"></script>
    <script src="js/libs/modernizr-1.7.min.js"></script>
    <link href="css/ACE.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        $(function () {
            $("#divSearch").click(function () {
                $("#btnSearch").trigger("click");
            })

            $("#aFirst").click(function () {

                var page = '<%=Session["page"] %>';
                if (page == 1) {
                    return false;
                }
                $("#btnFirst").trigger("click");
            });
            $("#aPrevious").click(function () {
                var ddlpage = $("#ddlPage  option:selected").text().split('/')[0];
                if (ddlpage <= 1) {
                    return false;
                }
                $("#btnPrevious").trigger("click");
            });
            $("#aNext").click(function () {
                var ddlpage = $("#ddlPage  option:selected").text().split('/')[0];
                var maxpage = $("#ddlPage  option:selected").text().split('/')[1];
                if (ddlpage >= maxpage) {
                    return false;
                }
                $("#btnNext").trigger("click");
            });
            $("#aLast").click(function () {
                var ddlpage = $("#ddlPage  option:selected").text().split('/')[0];
                var maxpage = $("#ddlPage  option:selected").text().split('/')[1];
                if (ddlpage == maxpage) {
                    return false;
                }
                $("#btnLast").trigger("click");
            });

        });
    
    </script>
  </head>

  <body>
    <form id="Form1" runat="server">
   <div class="box" >
        <h2>
            <a href="#" id="toggle-forms">班级成绩</a>
        </h2>
        <div class="block" id="forms">
            <fieldset>
                <legend>成绩查询</legend>
                <div style="width:710px">
                    <label id="label11">
                      &nbsp;&nbsp;&nbsp  班级名</label>&nbsp;&nbsp;&nbsp;     
                     <asp:DropDownList ID="ddlClassName" runat ="server" class="dropdownlist" ></asp:DropDownList>
                  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <label id="Label1">
                        班主任</label>&nbsp;&nbsp;&nbsp;
                        <asp:DropDownList ID="ddlClassTeaName"  runat ="server" class="dropdownlist" ></asp:DropDownList>
                     <br />
<label>授课教师</label>&nbsp;&nbsp;&nbsp;
                 
                     <asp:DropDownList ID="ddlTeaTeaName"  runat ="server" class="dropdownlist" ></asp:DropDownList>
                           <label id="Label4">  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;                                
                     专业</label>&nbsp;&nbsp;&nbsp;&nbsp;
                     <asp:DropDownList ID="ddlSubName"  runat ="server" class="dropdownlist" ></asp:DropDownList>

                     
                    &nbsp;
<br />

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<label>课程</label>&nbsp;&nbsp;&nbsp;
                     <asp:TextBox ID="txtTeaLesson"  runat="server"  class="txt"></asp:TextBox>
                     
                        
                  
                  
                    <br />
                    <br />
                         <div id="divSearch" class="six column" runat="server" >
									      
									      	<a  id="A2" href="javascript:void(0)" class=" dialog_link ui-state-default ui-corner-some floatRight"><span class=" span-ui-icon ui-icon ui-icon-search "></span>查询</a>
									     
									    </div>


                </div>


            </fieldset>
            
        </div>
    </div>
    <div  class="box">
        <h2>
            <a href="#" id="toggle-list">信息列表</a>
        </h2>
        <div class="block" id="list">
            <asp:Repeater ID="infolist" runat="server">
                <HeaderTemplate>
                    <table cellpadding="0" cellspacing="0" border="0" class="display" "
                        id="example">
                        <thead>
                            <tr>
                            
                                <th>
                                    班级
                                </th>                    
                                <th>
                                    课程
                                </th>
                                <th>
                                    班主任
                                </th>
                                <th >
                                    授课教师
                                </th> 
                                <th>
                                   平均分
                                </th>                          
                                <th >
                                   打分日期
                                </th>
                            </tr>
                        </thead>
                </HeaderTemplate>
                <ItemTemplate>
                    <tbody>
                        <tr class="odd gradeA">
                            <td style="width:22%">
                               <%# Eval("class_allname") %>
                            </td>
      
                            <td>
                                 <%# Eval("teaching_lesson") %>
                            </td>
                            <td>
                                 <%# Eval("class_tea") %>
                            </td>
                            <td >
                                <%# Eval("teaching_tea") %>
                            </td>
                            <td>
                             <%# Eval("fra_average") %>
                            </td>
                            <td>
                             <%# Eval("fra_time") %>
                            </td>
                        </tr>
                    </tbody>
                </ItemTemplate>
                <FooterTemplate>
                    <tfoot>
                        <tr>

                            <th>
                                班级
                            </th>
                 
                            <th>
                                课程
                            </th>
                            <th>
                                班主任
                            </th>
                            <th >
                                授课教师
                            </th>
                           <th>
                                平均分
                            </th>
                            <th>
                                打分时间
                            </th>
                        </tr>
                    </tfoot>
                   
                </FooterTemplate>
            </asp:Repeater>
        </table>

        <a id="aLast" href="#" class=" dialog_link ui-state-default ui-corner-some floatRight " >尾页</a>
                                                         
			    <a id="aNext" href="#" class=" dialog_link ui-state-default ui-corner-some floatRight" >下一页</a>
									                                        
                            <asp:DropDownList ID="ddlPage"  
                                
                class="dialog_link ui-state-default ui-corner-some floatRight" 
                Width="85px"  AutoPostBack="true"
                                runat="server" 
                onselectedindexchanged="ddlPage_SelectedIndexChanged"  >
                            </asp:DropDownList> 
                           
				<a id="aPrevious"  href="#" class=" dialog_link ui-state-default ui-corner-some floatRight ">上一页</a>
                                          
                                         
				<a id="aFirst" href="#" class=" dialog_link ui-state-default ui-corner-some floatRight">首页</a>
        </div>
    </div>
    <asp:Button ID="btnSearch" runat="server" Text="Button"  style="display:none"
        onclick="btnSearch_Click" />
    <asp:Button ID="btnFirst" runat="server" Text="Button" style="display:none"
        onclick="btnFirst_Click" />
    <asp:Button ID="btnPrevious" runat="server" Text="Button" style="display:none"
        onclick="btnPrevious_Click" />
    <asp:Button ID="btnNext" runat="server" Text="Button"  style="display:none" onclick="btnNext_Click" />
    <asp:Button ID="btnLast" runat="server" Text="Button" style="display:none"  onclick="btnLast_Click" />
   </form>
   </body>
   </html>
   